class RedoPositionsFields < ActiveRecord::Migration
  def self.up
    remove_column :positions, :semester
    remove_column :positions, :description
    remove_column :positions, :name
    add_column :positions, :semester_index, :integer
    add_column :positions, :position, :integer
  end

  def self.down
    remove_column :positions, :semester_index
    remove_column :positions, :position
    add_column :positions, :semester, :datetime
    add_column :positions, :description, :string
    add_column :positions, :name, :string
  end
end
